﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using ZoneLine.Common;

namespace ZoneLine.Views.converts
{
    public class WorkDirecitionConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is WorkDirectionEnum rlt)
            {
                if (rlt == WorkDirectionEnum.Left)
                {
                    return "左";
                }
                else { return "右"; }
            }
            return "未定义";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
